import request from '@/utils/request'

// 查询传感器主题和设备关联数据列表
export function listSensubjectdevice(query) {
  return request({
    url: '/snmp/sensubjectdevice/list',
    method: 'get',
    params: query
  })
}

// 查询传感器主题和设备关联数据列表
export function listSubjectdevice(deviceId) {
  return request({
    url: '/snmp/sensubjectdevice/getlist/deviceId/' + deviceId,
    method: 'get'
  }) 
}


// 查询传感器主题和设备关联数据详细
export function getSensubjectdevice(id) {
  return request({
    url: '/snmp/sensubjectdevice/' + id,
    method: 'get'
  })
}

// 新增传感器主题和设备关联数据
export function addSensubjectdevice(data) {
  return request({
    url: '/snmp/sensubjectdevice',
    method: 'post',
    data: data
  })
}

// 修改传感器主题和设备关联数据
export function updateSensubjectdevice(data) {
  return request({
    url: '/snmp/sensubjectdevice',
    method: 'put',
    data: data
  })
}

// 删除传感器主题和设备关联数据
export function delSensubjectdevice(id) {
  return request({
    url: '/snmp/sensubjectdevice/' + id,
    method: 'delete'
  })
}

// 新增传感器主题和设备关联数据
export function addlistSensubjectdevice(data) {
  return request({
    url: '/snmp/sensubjectdevice/addlist',
    method: 'post',
    data: data
  })
}
